#ifndef CUSTOMWEBPAGE_H
#define CUSTOMWEBPAGE_H

#include <QWebEnginePage>
#include <QObject>
#include <QMessageBox>
#include "configmanager.h"
#include "qthttputils.h"
#include "customwarningdialog.h"

class CustomWebPage : public QWebEnginePage
{
public:
    explicit CustomWebPage(QWebEngineProfile *profile, QObject *parent = nullptr);

    bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame);
};

#endif // CUSTOMWEBPAGE_H
